package com.seray.zebraprintlib.content;

import com.seray.zebraprintlib.config.PrintConfig;

/**
 * Author：李程
 * CreateTime：2018/8/8 15:48
 * E-mail：licheng@kedacom.com
 * Describe：条码
 */
public class BarCodeContent extends AZebraContent {

    public BarCodeContent(int x, int y, String content) {
        super(x, y, PrintConfig.NORMAL_BAR_CODE_SIZE, PrintConfig.Direction.N, "", content);
        LINE_TYPE = "^BY2,3,85";
    }

    @Override
    public String install() {
        return "^JMB^FT"
                + x + COMMA
                + y + BREAK
                + LINE_TYPE + BREAK
                + "^BCR,,Y" + COMMA + direction + BREAK
                + FILED_START + content + FILED_END
                + BREAK;
    }
}
